﻿<Window x:Class="Profit.Views.AgentView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Profit.Controls" 
        SizeToContent="Manual"
        MinWidth="500"
        Width="500"
        MinHeight="500"
        Height="500"
        UseLayoutRounding="True" 
        d:DesignHeight="500" d:DesignWidth="469" 
        Title="{Binding SelectedAgent.Name}"
        Icon="/Profit;component/Resources/Icons/app_32.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <local:AgentControl 
            Grid.Row="1" 
            VerticalAlignment="Stretch" 
            Agent="{Binding SelectedAgent}" />
        
        <local:DialogActionsPanel
            Grid.Row="2" 
            HorizontalAlignment="Right"
            VerticalAlignment="Bottom"
            ShowButtonCancel="True"
            ButtonCancelContent="Import extensions"
            ButtonCancelCommand="{Binding ImportExtensionsCommand}"
            ButtonOkContent="Save"
            ButtonOkCommand="{Binding ValidateCommand}" />
    </Grid>
</Window>
